home *** CD-ROM | disk | FTP | other *** search
Makefile | 1991-05-01 | 2.3 KB | 62 lines | [TEXT/MPS ] |
- #################################################################################
- # File: MakeFile for the MacWrite translator #
- # Target: MacWrite #
- #################################################################################
-
- TranslatorName = MacWrite ### Whatever you like, but try to be descriptive
-
- Creator = 'Clrs' ### This may be changed if you like (if you want to use a different icon, for instance
- Type = 'Fltr' ### This must not be changed
-
- ResTypeIn = 'FLTI' ### This is for text import translators
- ResNumIn = 137 ### Your choice, but must match the number in the FTYP resource
- ResTypeOut = 'FLTE' ### This is for text export translators
- ResNumOut = 138 ### Your choice, but must match the number in the FTYP resource
-
- Sources = MacWriteImport.c ∂
- MacWriteExport.c ∂
- CodeA5Globals.c ### For documentation only, not used by make
-
- HeaderPath = :::XTND Headers:XTNDCIncludes: ### Change this if you reorganize the folder structure
-
- Headers = MacWrite.h ∂
- CodeA5Globals.h ∂
- "{HeaderPath}"XTNDInterface.h ∂
- "{HeaderPath}"XTNDTextTranslator.h ### Required headers for a text import and export translator
-
-
- ### Default Dependency/Build Rule
-
- .c.o ƒ .c {Headers}
- C {Default}.c {COptions} -r -d MPW -d MPWC
-
-
- ### This copies the resources from MacWriteImport.π.rsrc into the translator file. It
- ### deletes the old resource fork before adding the new resources. This must be the
- ### first dependency for the target file, since it deletes all existing resources.
-
- {TranslatorName} ƒƒ MacWrite.r MacWriteImport.π.rsrc MakeFile
- Rez MacWrite.r -t {Type} -c {Creator} ∂
- -o {TranslatorName}
-
-
- ### This puts the import code into the resource type and number specified above in the translator file
-
- {TranslatorName} ƒƒ MacWriteImport.c.o CodeA5Globals.c.o MakeFile
- Link -rt {ResTypeIn}={ResNumIn} -m main -sg Main -sn Main="MacWrite - IN" ∂
- MacWriteImport.c.o ∂
- CodeA5Globals.c.o ∂
- "{Libraries}"Interface.o ∂
- "{Libraries}"RunTime.o ∂
- -o {TranslatorName}
-
- ### This puts the export code into the resource type and number specified above in the translator file
-
- {TranslatorName} ƒƒ MacWriteExport.c.o CodeA5Globals.c.o MacWriteExport.h MakeFile
- Link -rt {ResTypeOut}={ResNumOut} -m main -sg Main -sn Main="MacWrite - OUT" ∂
- MacWriteExport.c.o ∂
- CodeA5Globals.c.o ∂
- "{Libraries}"Interface.o ∂
- "{Libraries}"RunTime.o ∂
- -o {TranslatorName}
-